package br.eck.formations;

import java.util.ArrayList;
import java.util.List;

import br.eck.model.base.DestrucatableObject;

public class StairFormation extends Formation {

    @Override
    public List<DestrucatableObject> getFormation(DestrucatableObject obj,
            int startX, int startY) {
        List<DestrucatableObject> objs = new ArrayList<DestrucatableObject>();

        DestrucatableObject ds;
        for (int i = 0; i < 4; i++) {
            ds = obj.clone();
            ds.setX(startX + (i * ds.getImage().getWidth()));
            ds.setY(startY + (i * (ds.getImage().getHeight() / 2)));
            objs.add(ds);
        }

        return objs;
    }

}
